import http from "@/util/request";

/**
 * 搜索订单列表数据
 * @param status 订单状态
 * @param paperName 订单名
 * @returns {*}
 */
export function getOrderStatusList(status, paperName) {
	return http(`/wx/acceptance/paper/orderStatusList?status=${status}&paperName=${paperName}`, {}, true, 'GET')
}

/**
 * 获取非卖品订单列表
 * @returns {*}
 */
export function getNotSaleList() {
	return http('/wx/acceptance/project/notForSale', {}, true, 'GET')
}

/**
 * 请求订单详情
 * @param id
 * @returns {*}
 */
export function queryPaperDetail(id) {
	return http(`/wx/acceptance/project/${id}`, {}, true, 'GET')
}

/**
 * 获取拼团详情
 * @param id
 * @returns {*}
 */
export function queryGroupBuyDetailByOrderId(id) {
	return http(`/wx/acceptance/buying/getGroupInfoByPaperId/${id}`, {}, true, 'GET')
}

/**
 * 获取待评价订单列表
 * @returns {*}
 */
export function getCustomReviewsList() {
	return http('/wx/acceptance/reviews/customReviewsList', {}, true, 'GET')
}

/**
 * 提交评价
 * @param data 评价数据
 * @returns {*}
 */
export function submitCustomReview(data) {
	return http('/wx/acceptance/reviews/customAdd', data, true, 'POST')
}

/**
 * 获取系统公告列表
 * @param {Object} params 可选查询参数
 * @returns {*}
 */
export function getNoticeList(params = {}) {
	return http('/wx/system/notice/list', params, true, 'GET')
}

